﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;

namespace Catering_Rules
{
    public partial class SendedOutBoxInfo
    {
        private readonly Catering_Operation.SendedOutBoxInfo dal = new Catering_Operation.SendedOutBoxInfo();
        public SendedOutBoxInfo() { }

        /// <summary>
        /// 添加已发送表信息
        /// </summary>
        /// <param name="model"></param>
        /// <returns></returns>
        public bool AddSendedOutBoxInfo(Catering_Model.SendedOutBoxInfo model)
        {
            return dal.AddSendedOutBoxInfo(model);
        }

        /// <summary>
        /// 删除一条已发送表信息
        /// </summary>
        public bool DeleteSendedOutBoxInfo(int ID)
        {
            return dal.DeleteSendedOutBoxInfo(ID);
        }

        /// <summary>
        /// 批量删除已发送表信息数据
        /// </summary>
        /// <param name="whereClause">删除条件</param>
        /// <returns></returns>
        public bool DeleteSendedOutBoxInfoList(string whereClause)
        {
            return dal.DeleteSendedOutBoxInfoList(whereClause);
        }

        /// <summary>
        /// 得到一个已发送表信息对象实体
        /// </summary>
        /// <param name="ID"></param>
        /// <returns></returns>
        public Catering_Model.SendedOutBoxInfo GetSendedOutBoxInfoModel(int ID)
        {
            return dal.GetSendedOutBoxInfoModel(ID);
        }

        /// <summary>
        /// 获得已发送表信息数据列表
        /// </summary>
        public DataTable GetSendedOutBoxInfoList(string strWhere)
        {
            return dal.GetSendedOutBoxInfoList(strWhere);
        }

        /// <summary>
        /// 获得已发送表信息数据列表数量
        /// </summary>
        public int GetSendedOutBoxInfoListCount(string strWhere)
        {
            return dal.GetSendedOutBoxInfoListCount(strWhere);
        }
    }
}
